import yaml


data_path = "../datatest/"

def get_data(name):
    test_data_path = data_path + "testdata.yml"
    print(test_data_path)
    with open(test_data_path, encoding="utf-8") as f:
        test_data = yaml.safe_load(f)
        data = test_data.get(name)
    return data